﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JQueryWidget.WidgetWeb
{
    [ViewStateModeById]
    public partial class ViewStateUserControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Button1.Text = "ViewState Button";
            //Content = "asdfsdaf";
        }

        protected string Content
        {
            get
            {
                return (ViewState["Content"] ?? String.Empty).ToString();
            }
            set
            {
                ViewState["Content"] = value;
            }
        }

        public override string ClientID
        {
            get
            {
                return "ViewStateUserControl";
            }
        }

        public override string UniqueID
        {
            get
            {
                return "ViewStateUserControl";
            }
        }
    }
}